﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200022F RID: 559
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueEnterScRsp : IMessage<ChessRogueEnterScRsp>, IMessage, IEquatable<ChessRogueEnterScRsp>, IDeepCloneable<ChessRogueEnterScRsp>, IBufferMessage
	{
		// Token: 0x1700074F RID: 1871
		// (get) Token: 0x06001907 RID: 6407 RVA: 0x000476E3 File Offset: 0x000458E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueEnterScRsp> Parser
		{
			get
			{
				return ChessRogueEnterScRsp._parser;
			}
		}

		// Token: 0x17000750 RID: 1872
		// (get) Token: 0x06001908 RID: 6408 RVA: 0x000476EA File Offset: 0x000458EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueEnterScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000751 RID: 1873
		// (get) Token: 0x06001909 RID: 6409 RVA: 0x000476FC File Offset: 0x000458FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueEnterScRsp.Descriptor;
			}
		}

		// Token: 0x0600190A RID: 6410 RVA: 0x00047703 File Offset: 0x00045903
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterScRsp()
		{
		}

		// Token: 0x0600190B RID: 6411 RVA: 0x0004770C File Offset: 0x0004590C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterScRsp(ChessRogueEnterScRsp other) : this()
		{
			this.id_ = other.id_;
			this.rogueCurrentInfo_ = ((other.rogueCurrentInfo_ != null) ? other.rogueCurrentInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.stageInfo_ = ((other.stageInfo_ != null) ? other.stageInfo_.Clone() : null);
			this.info_ = ((other.info_ != null) ? other.info_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600190C RID: 6412 RVA: 0x0004779C File Offset: 0x0004599C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterScRsp Clone()
		{
			return new ChessRogueEnterScRsp(this);
		}

		// Token: 0x17000752 RID: 1874
		// (get) Token: 0x0600190D RID: 6413 RVA: 0x000477A4 File Offset: 0x000459A4
		// (set) Token: 0x0600190E RID: 6414 RVA: 0x000477AC File Offset: 0x000459AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x17000753 RID: 1875
		// (get) Token: 0x0600190F RID: 6415 RVA: 0x000477B5 File Offset: 0x000459B5
		// (set) Token: 0x06001910 RID: 6416 RVA: 0x000477BD File Offset: 0x000459BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCurrentInfo RogueCurrentInfo
		{
			get
			{
				return this.rogueCurrentInfo_;
			}
			set
			{
				this.rogueCurrentInfo_ = value;
			}
		}

		// Token: 0x17000754 RID: 1876
		// (get) Token: 0x06001911 RID: 6417 RVA: 0x000477C6 File Offset: 0x000459C6
		// (set) Token: 0x06001912 RID: 6418 RVA: 0x000477CE File Offset: 0x000459CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000755 RID: 1877
		// (get) Token: 0x06001913 RID: 6419 RVA: 0x000477D7 File Offset: 0x000459D7
		// (set) Token: 0x06001914 RID: 6420 RVA: 0x000477DF File Offset: 0x000459DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueInfo StageInfo
		{
			get
			{
				return this.stageInfo_;
			}
			set
			{
				this.stageInfo_ = value;
			}
		}

		// Token: 0x17000756 RID: 1878
		// (get) Token: 0x06001915 RID: 6421 RVA: 0x000477E8 File Offset: 0x000459E8
		// (set) Token: 0x06001916 RID: 6422 RVA: 0x000477F0 File Offset: 0x000459F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGameInfo Info
		{
			get
			{
				return this.info_;
			}
			set
			{
				this.info_ = value;
			}
		}

		// Token: 0x06001917 RID: 6423 RVA: 0x000477F9 File Offset: 0x000459F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueEnterScRsp);
		}

		// Token: 0x06001918 RID: 6424 RVA: 0x00047808 File Offset: 0x00045A08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueEnterScRsp other)
		{
			return other != null && (other == this || (this.Id == other.Id && object.Equals(this.RogueCurrentInfo, other.RogueCurrentInfo) && this.Retcode == other.Retcode && object.Equals(this.StageInfo, other.StageInfo) && object.Equals(this.Info, other.Info) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001919 RID: 6425 RVA: 0x00047890 File Offset: 0x00045A90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.rogueCurrentInfo_ != null)
			{
				num ^= this.RogueCurrentInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.stageInfo_ != null)
			{
				num ^= this.StageInfo.GetHashCode();
			}
			if (this.info_ != null)
			{
				num ^= this.Info.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600191A RID: 6426 RVA: 0x0004792A File Offset: 0x00045B2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600191B RID: 6427 RVA: 0x00047932 File Offset: 0x00045B32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600191C RID: 6428 RVA: 0x0004793C File Offset: 0x00045B3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.stageInfo_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.StageInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Id != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Id);
			}
			if (this.rogueCurrentInfo_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.RogueCurrentInfo);
			}
			if (this.info_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.Info);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600191D RID: 6429 RVA: 0x000479EC File Offset: 0x00045BEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.rogueCurrentInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueCurrentInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.stageInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.StageInfo);
			}
			if (this.info_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Info);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600191E RID: 6430 RVA: 0x00047A8C File Offset: 0x00045C8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueEnterScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.rogueCurrentInfo_ != null)
			{
				if (this.rogueCurrentInfo_ == null)
				{
					this.RogueCurrentInfo = new ChessRogueCurrentInfo();
				}
				this.RogueCurrentInfo.MergeFrom(other.RogueCurrentInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.stageInfo_ != null)
			{
				if (this.stageInfo_ == null)
				{
					this.StageInfo = new ChessRogueInfo();
				}
				this.StageInfo.MergeFrom(other.StageInfo);
			}
			if (other.info_ != null)
			{
				if (this.info_ == null)
				{
					this.Info = new ChessRogueGameInfo();
				}
				this.Info.MergeFrom(other.Info);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600191F RID: 6431 RVA: 0x00047B60 File Offset: 0x00045D60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001920 RID: 6432 RVA: 0x00047B6C File Offset: 0x00045D6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 24U)
				{
					if (num == 10U)
					{
						if (this.stageInfo_ == null)
						{
							this.StageInfo = new ChessRogueInfo();
						}
						input.ReadMessage(this.StageInfo);
						continue;
					}
					if (num == 24U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.Id = input.ReadUInt32();
						continue;
					}
					if (num == 90U)
					{
						if (this.rogueCurrentInfo_ == null)
						{
							this.RogueCurrentInfo = new ChessRogueCurrentInfo();
						}
						input.ReadMessage(this.RogueCurrentInfo);
						continue;
					}
					if (num == 98U)
					{
						if (this.info_ == null)
						{
							this.Info = new ChessRogueGameInfo();
						}
						input.ReadMessage(this.Info);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000A6B RID: 2667
		private static readonly MessageParser<ChessRogueEnterScRsp> _parser = new MessageParser<ChessRogueEnterScRsp>(() => new ChessRogueEnterScRsp());

		// Token: 0x04000A6C RID: 2668
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000A6D RID: 2669
		public const int IdFieldNumber = 10;

		// Token: 0x04000A6E RID: 2670
		private uint id_;

		// Token: 0x04000A6F RID: 2671
		public const int RogueCurrentInfoFieldNumber = 11;

		// Token: 0x04000A70 RID: 2672
		private ChessRogueCurrentInfo rogueCurrentInfo_;

		// Token: 0x04000A71 RID: 2673
		public const int RetcodeFieldNumber = 3;

		// Token: 0x04000A72 RID: 2674
		private uint retcode_;

		// Token: 0x04000A73 RID: 2675
		public const int StageInfoFieldNumber = 1;

		// Token: 0x04000A74 RID: 2676
		private ChessRogueInfo stageInfo_;

		// Token: 0x04000A75 RID: 2677
		public const int InfoFieldNumber = 12;

		// Token: 0x04000A76 RID: 2678
		private ChessRogueGameInfo info_;
	}
}
